package com.keyue.domain.vo.admin;

import com.keyue.common.constant.Constant;
import com.keyue.domain.vo.BasePageVO;
import lombok.*;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * (Member)登录
 *
 * @author makejava
 * @since 2023-08-22 17:02:39
 */
@Data
@AllArgsConstructor
@ToString
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@SuperBuilder
public class AdminUserLoginByPhoneVO extends BasePageVO implements Serializable {

    /**
     * 手机号码
     */
    @NotBlank(message = "手机号码不能为空!")
    @Pattern(message = "手机号码格式不正确", regexp = Constant.PHONE_REGEXP)
    private String phone;

    /**
     * 手机验证码
     */
    @NotBlank(message = "手机验证码不能为空!")
    private String smsCaptchaCode;
}

